Fire up your applications with Jetfire
RSS
Jetfire Wiki


Quick Search
»
Advanced Search »

Page History: Jetfire Code: Quiz

Compare Page Revisions



« Older Revision - Back to Page History - Current Revision


Page Revision: 2009/07/28 21:49


Table of Contents [Hide/Show]


Jetfire Code: Quiz Class

The Jetfire Code Class for Quiz is shown below in the box. This simple class is inherited by Quizes and Surveys that are designed using Form Maker.

// Q U I Z    W O R K F L O W
//===================================================================================
// Quiz.txt
//===================================================================================
// Copyright (C) 2008 TrackerRealm Corporation
// This file is part of Jetfire.  http://Jetfire.ca
// 
// Jetfire is open software: you can redistribute it and/or modify it under the terms 
// of the GNU General Public License as published by the Free Software Foundation, 
// version 3 of the License.
// 
// Jetfire is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
// PURPOSE.  See the GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License along with Jetfire.  
// If not, see http://www.gnu.org/licenses.
// REMOVAL OF THIS NOTICE IS VIOLATION OF THE COPYRIGHT.
//===================================================================================

namespace JetfireBase
{
	// This workflow is a quiz.
	public workflow Quiz
	{
		public Quiz()
		{
			enterstate Start();
		}

		// Properties
		List qnaList = new List();

		public List QnAList
		{
			get { return this.qnaList;	}
		}

		// States
		public Start()		{ }
		public Completed()	{ }

		// Methods - call this when the quiz is saved
		public void FinishEdit()
		{
			enterstate Completed();
		}
	}
}

ScrewTurn Wiki version 3.0.4.560. Some of the icons created by FamFamFam.